<%-- 
    Document   : sachkhac
    Created on : May 4, 2013, 12:49:34 PM
    Author     : quannq
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<script>
//    $(document).ready(function() {
//        var max = < ?php echo $dem - 4; ? > ;
//                if (max > 8)
//            max = 8;
//        var min = < ?php echo $dem; ? > ;
//                var i = 0;
//
//        $(".khacnext").click(function() {
//
//            if (i >= max) {
//                i = -4;
//            }
//            i = i + 4;
//            //alert(i);
//            $(".khac").load('Ajax/Get4SachKhac.php?i=' + i);
//        });
//
//        $(".khacpre").click(function() {
//
//            if (i <= 0) {
//                if (min <= 4)
//                    i = 4;
//                else if (min <= 8)
//                    i = 8;
//                else if (min <= 12)
//                    i = 12;
//                else if (min > 12)
//                    i = 12;
//            }
//            i = i - 4;
//            //alert(i);
//            $(".khac").load('Ajax/Get4SachKhac.php?i=' + i);
//
//        });
//    });
</script>

<div class="p-module">

    <div class="p-module-header p-module-header-blue clearfix">
        <h3>
            <a href="xemtatca.php?id=2&page=1" style="float: left; text-decoration: none;">
                Sách Phương Nam Book
            </a>
        </h3>
        <a class="tool-link" href="xemtatca.php?id=2&page=1">Xem tất cả</a>
    </div>


    <div class="p-module-body">
        <div class="p-product-list-1 products-slider">
            <input type="hidden" class="page_size" name="page_size" value="4"/>
            <div class="products-slider-viewport"><div class="products-slider-inner" style="position: relative; width: 750px; height: 253px; overflow: hidden; ">
                    <div class="products-page khac" style="position: absolute; top: 0px; left: 0px; display: block; z-index: 5; opacity: 1; ">

                        <!--<?php foreach ($listsach as $sach) { ?>-->
                        <div class="product-one">   
                            <div class="p-thumb" onmouseover=<!--<?php echo "'tooltip($sach[0])'; " ?>-->>
                                 <a href="sach.php?idsach=<?php echo $sach[0]; ?>" title="<?php echo $sach[1]; ?>">
                                    <img class="" src="<?php echo $sach[15]; ?>" width="109" height="160" alt="<?php echo $sach[1]; ?>" border="0"/>
                                </a>
                            </div>      
                            <div>
                                <h2>
                                    <a href="sach.php?idsach=<?php echo $sach[0]; ?>" title="<?php echo $sach[1]; ?>"><!--<?php echo $sach[1]; ?>--></a>
                                </h2>
                                <!--<?php (int) $giaban = ((int) $sach[5] - (int) $sach[5] * (int) $sach[6] / 100); ?>-->
                                <div class="p-price"><span><span id="sec_sell_price_69726"><!--<?php echo number_format($giaban,"0",",",".");; ?>--></span>&nbsp;VNĐ</span>
                                </div>
                            </div>
                        </div>
                        <!--<?php } ?>-->

                    </div>
                </div>
            </div>
            <a class="btn-prev khacpre" >undefined</a>
            <a class="btn-next khacnext">undefined</a>
        </div>
        <div class="cleardiv">
        </div>
    </div>
</div>



